<template>
    <div>
        <table style="width: 100%;border: solid black 1px">
            <tr>
                <td>创建时间</td>
                <td>订单号</td>
                <td>金额</td>
            </tr>
            <tr v-for="(i,index) in order_ls" :key="index">
                <td>
                    {{i.create}}
                </td>
                <td>
                    {{i.order_id}}</router-link>
                </td>
                <td>
                    {{i.money}}
                </td>
            </tr>
        </table>
    </div>
</template>

<script>
export default {
    name: "order",
    data(){
        return{
            order_ls: []
        }
    },
    methods:{
        get_info(){
            this.$axios.get('orderitem/',{
                params:{
                    'order_id': this.$route.query.order_id
                }
            }).then(resp=>{
                console.log(resp.data)
                this.order_ls = resp.data.data
            })
        }
    },
    mounted() {
        this.get_info()
    }
}
</script>

<style scoped>

</style>